package com.zxl.designpattern.creator.factory;

import com.zxl.designpattern.creator.factory.pojo.Phone;

/**
 * @author zxl
 * @version 1.0
 * @description 手机店
 * @date 2025/5/31 18:56
 */
public class PhoneStore {

    /**
     * 买手机
     * @param type
     * @return
     */
    public Phone buyPhone(String type) {

        //从工厂获取手机
        Phone phone = SimpleFactory.createPhone(type);

        return phone;
    }
}
